'use strict';

import {Router} from 'express';
import * as controller from './blog.controller';

var router = new Router();

router.post('/comment', controller.CommentBlog);
router.get('/comment', controller.CommentBlog);
router.post('/publish', controller.CreateBlog);
router.get('/publish', controller.CreateBlog);
router.post('/list', controller.ListBlog);
router.get('/list', controller.ListBlog);
router.get('/detail', controller.DetailBlog);
router.post('/detail', controller.DetailBlog);

export default router;
